import axios from 'axios'
const instance = axios.create({
baseURL:'',
timeout:50000
})
// export function get(url,data){
//   return instance.get(url,{
//     data
//   })
// }
// export function post(url,data){
//   return instance.post(url,data)
// }



// 请求拦截
instance.interceptors.request.use(
  config =>{
    return config
  },
  error=>{
    return Promise.reject(error)
  }
)
instance.interceptors.response.use(response=>{
  console.log(response,'response')
  return Promise.resolve(response)
})
export default instance
